<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<?php include(DDROOTPATH.'/cache/title/'.$pagetag.'_title.php');?>
<link href="template/<?=MOBAN?>/css/style.css" rel="stylesheet" type="text/css" />
<link href="template/<?=MOBAN?>/css/layout.css" rel="stylesheet" type="text/css" />
<link href="template/<?=MOBAN?>/css/comm.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="template/<?=MOBAN?>/js/jquery-1.3.2.min.js"></script>
<SCRIPT type="text/javascript" src="template/<?=MOBAN?>/js/base64.js"></SCRIPT>
<SCRIPT type="text/javascript" src="template/<?=MOBAN?>/js/function.js"></SCRIPT>
<SCRIPT type="text/javascript" src="template/<?=MOBAN?>/js/taobao.js"></SCRIPT>
<script type="text/javascript">
function tip(id)
{
	if(id==1)
	{
		document.getElementById("tipnav").style.display="block";
	}
	if(id==2)
	{
		document.getElementById("tipnav").style.display="none";
	}
}

function tip1()
{
$("#tipnav").bind("mouseleave",
function()
{
		document.getElementById("tipnav").style.display="none";
}
);
}
</script>
</head>

<body>
<div class='head_warpC'>    
	<div class='slideup layout_head'>
        <ul class="headerTopLeft">
            <li class="home"><a href="index.php" onmousemove="tip(1);" >优米库首页</a></li>
            <li><a href="<?=$navheadurl?>comm/shortcut.php">放到桌面</a></li>
            <li><a href="#dd" onClick="AddFavorite('<?=$navheadurl?>','<?=WEBNICK?>')">添加到收藏夹</a></li>
            <li><a href="<?=$navheadurl?>user/msg_list.php?act=send">咨询优助手</a></li>
            <li><a href="<?=$navheadurl?>user/msg_list.php?act=send">提意见给客服</a></li>
        </ul>
        <ul class="headerTopRight" style="float:left;width:517px">
          <li class="HUserimg"><img src="upload/avatar/<?=get_avatar_filepath($_SESSION['dduserid'], $size = 'big')?>" width="40" height="40"></li>
          <?php if($_SESSION["duoduouser"]==NULL){?>
          <li><a href="<?=$navheadurl?>user/center.php">我的优米库</a></li>
          <li><a href="<?=$navheadurl?>user/register.php">成为米粒</a></li>
          <li><a href="<?=$navheadurl?>user/login.php">登录</a></li>
          <li><a href="<?=$navheadurl?>user/center.php">您好，游客<?=$_SESSION["tmpuser"]?></a></li>
          <?php } else{?>
          <li><a href="<?=$navheadurl?>user/center.php">我的优米库</a></li>
          <li><a href="<?=$navheadurl?>user/exit.php">退出</a></li>
          <li><a href="<?=$navheadurl?>user/center.php">您好，<?=$_SESSION["duoduouser"]?></a></li>
          <?php }?> 
        </ul>
    <div class="clears"></div>
	</div>  

    <div class="layout_head reg">
        <a href="index.php" class="logo_reg"><img src="template/<?=MOBAN?>/images/logo_zhuce.png" width="226" height="57" /></a>
        <ul class="reg_enter" style="margin-top:40px">
          <li> <a <?php if($cid==3){echo "class=\"ArtSelFont\"";}?>  href="article_list.php?cid=3">店铺帮助</a></li>
          <li><a <?php if($cid==1){echo "class=\"ArtSelFont\"";}?> href="article_list.php?cid=1">米粒帮助</a></li>
          <li><a <?php if($cid==4){echo "class=\"ArtSelFont\"";}?> href="article_list.php?cid=4">米店快报</a></li>
          <li><a <?php if($cid==2){echo "class=\"ArtSelFont\"";}?> href="article_list.php?cid=2">优米库公告</a></li>
        </ul>  
    </div>
    <div class="dhmenu" id="tipnav" onmouseout="tip1();" style="display:none">
        <div class="fm">
        <a class="active">攒米</a><a href='malllist.php'>返米店铺</a><!--<a href='#'>返米宝</a>--><a href='user/tuiguang_url.php'>免费攒米</a><!--<a href='#'>省钱检测</a>--><a class="active">兑换</a><a href="huan.php">用米兑换</a><a href="user/tixian.php">申请提现</a>
        <a href='#' class="active">社区</a><a href='baobeilist.php'>米粒晒吧</a>
        <br /><a class="active">店铺</a><a href='#'>优米联盟</a>
       </div>
    </div>  
</div>
   <?php
    if ($_SESSION["duoduouser"]==NULL)
	{
		$username="游客".$_SESSION["tmpuser"];
		$sstr="<a class=\"ustatefont\" href=user/login.php>登录</a><a  class=\"ustatefont\" href=user/register.php>注册</a>";
	} 
	else
	{
		$username=$_SESSION["duoduouser"];
		$sstr="<a class=\"ustatefont\" href=user/exit.php>退出</a>";
	}
   ?>
 
  <div class="layout_body MarginT10" style="min-height:490px">
    <div class="News">
     <h1 class="shopname" style="width:400px;float:left"><a href="article_list.php?cid=<?=$cid?>" ><img src="template/<?=MOBAN?>/images/back.gif" width="29" height="30" border="0" style="float:left;margin-top:7px" /></a><span style="margin-left:10px;display:inline"><?=$username?></span><?php  echo $sstr;?></h1>
      <div class="FRight" style="float:left;margin-top:6px"><a href="user/msg_list.php?act=send" class="btn" style="height:10px;line-height:10px">发消息给客服</a><a href="user/msg_list.php?act=send" class="btn"  style="height:10px;line-height:10px">发帖咨询优优助手</a></div>
      <div class="clears"></div>
      <div class="newscont">
        <div class="newscontTiT">
            <h3><?=$title?></h3>
            <span>时间：<?=$created_date?></span>
            <div class="share">
               <div style="float:left;height:20px;margin-top:5px"><img src="template/<?=MOBAN?>/images/ico_fx.gif" width="18" height="18" border="0" /></div>
               <div style="float:left;height:20px;margin-top:5px;margin-left:5px;display:inline">分享给好友：</div>
                <!-- Baidu Button BEGIN -->
                <div id="bdshare" class="bdshare_t bds_tools get-codes-bdshare" style="margin-top:0px">
                    <a class="bds_qzone"></a>
                    <a class="bds_tsina"></a>
                    <a class="bds_tqq"></a>
                    <a class="bds_renren"></a>
                    <a class="shareCount"></a>
                </div>
                <script type="text/javascript" id="bdshare_js" data="type=tools" ></script>
                <script type="text/javascript" id="bdshell_js"></script>
                <script type="text/javascript">
                    document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + new Date().getHours();
                </script>
                <!-- Baidu Button END --> 
            </div>
        </div>
        <div class="newscontM"><?=str_replace('../../upload','upload',$content)?></div>
      </div>
    </div>
  </div>
</div>

<div class="lineclear" style="margin-top:50px"></div>
<?php
include("footer.tpl.php");
?>
</body>
</html>
